<?php 

namespace app\admin\model;
use think\Model;

class comment extends Model{
	public function setTextAttr($value,$data)
    {
       $at = db('comment')->where('uid',$data['com_id'])->find();
       return "@".$at['name'].", ".$value;
    }
}


 ?>